package com.ytjj.qmyx.admin.eunm;

public enum RoleEnums {

    CUSTOMER("Customer", "平台客服"),

    CUSTOMERADMIN("CustomerAdmin", "客服主管"),

    DOCUMENTARY("DOCUMENTARY", "跟单"),

    CUSTOMERLEADER("CustomerLeader", "平台承担");

    private String code;
    private String name;

    RoleEnums(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static boolean isCustomer(String code){
        if (code.equals(CUSTOMER.getCode()) || code.equals(CUSTOMERADMIN.getCode()) || code.equals(CUSTOMERLEADER.getCode())) {
            return true;
        } else {
            return false;
        }
    }
}
